Replace assert_precondition with assert_implements in largest-contentful-paint/ (#23006) assert_precondition is deprecated (see https://github.com/web-platform-tests/rfcs/blob/master/rfcs/assert_precondition_rename.md). Since LargestContentfulPaint is not an OPTIONAL part of the Largest Contentful Paint spec, these tests should use assert_implements.
diff --git a/largest-contentful-paint/first-paint-equals-lcp-text.html b/largest-contentful-paint/first-paint-equals-lcp-text.html index 7a01cb1..97eb67e 100644 --- a/largest-contentful-paint/first-paint-equals-lcp-text.html +++ b/largest-contentful-paint/first-paint-equals-lcp-text.html
@@ -6,8 +6,8 @@ <script src="/resources/testharnessreport.js"></script> <script> async_test(function (t) { - assert_precondition(window.PerformancePaintTiming, "PerformancePaintTiming is not implemented"); - assert_precondition(window.LargestContentfulPaint, "LargestContentfulPaint is not implemented"); + assert_implements(window.PerformancePaintTiming, "PerformancePaintTiming is not implemented"); + assert_implements(window.LargestContentfulPaint, "LargestContentfulPaint is not implemented"); let firstPaintTime = 0; let firstContentfulPaintTime = 0; let largestContentfulPaintTime = 0;